varying vec3 normal, lightDir, color;
varying vec2 texcoord;
uniform sampler2D webcam;

void main()
{
    float NL = dot(normal,lightDir);    
    vec3 result = NL * color;

    vec4 envcolor = texture2D(webcam, texcoord);        
    gl_FragColor = vec4(result, 1.0);
    //gl_FragColor = vec4(envcolor.xyz, 1.0);
}
